package gjtx5;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Time3 {
    public static void main(String[] args) throws ParseException {
        Date d=new Date();
        SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd");
        try {
            long lo=df.parse("2022-04-24").getTime();
            long lo1=df.parse("2012-02-21").getTime();
            System.out.println((lo-lo1)/(1000*60*60*24));
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
